home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Periodicals / develop / develop Issue 15 / develop 15 code / 3D Interface / Demo3D / MDemo3D.cp < prev    next >
Encoding:
Text File  |  1993-06-02  |  1.3 KB  |  76 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        MDemo3D.cp
  3.  
  4.     Contains:    3D drawing demo program
  5.  
  6.     Written by:    Jamie Osborne
  7.  
  8.     Copyright:    © 1992-1993 by Apple Computer, Inc.
  9.  
  10. */
  11.  
  12. #ifndef __MACAPP__
  13. #include <MacApp.h>
  14. #endif
  15.  
  16. #ifndef __UPRINTING__
  17. #include <UPrinting.h>
  18. #endif
  19.  
  20. #ifndef __UGRIDVIEW__
  21. #include <UGridView.h>
  22. #endif
  23.  
  24. #ifndef __UTEVIEW__
  25. #include <UTEView.h>
  26. #endif
  27.  
  28. #ifndef __UDIALOG__
  29. #include <UDialog.h>
  30. #endif
  31.  
  32. #ifndef __UDEMO3D__
  33. #include <UDemo3D.h>
  34. #endif
  35.  
  36. #ifndef __UGEOMETRY__
  37. #include <UGeometry.h>
  38. #endif
  39.  
  40. #ifndef __UFLOATWINDOW__
  41. #include <UFloatWindow.h>
  42. #endif
  43.  
  44. #include "U3DDrawing.h"
  45.  
  46. //----------------------------------------------------------------------------------------
  47. // main: 
  48. //----------------------------------------------------------------------------------------
  49. #pragma push
  50. #pragma processor 68000
  51.  
  52. void main()
  53. {
  54.     TTestApplication *gTestApplication;
  55.  
  56.     InitToolBox();
  57.  
  58.     if (ValidateConfiguration(gConfiguration))
  59.     {
  60.         InitUMacApp(12);                            // Initialize MacApp; 12 calls to MoreMasters
  61.  
  62.         InitUTEView();
  63.         InitUDialog();
  64.         InitUGridView();
  65.         InitUFloatWindow();
  66.         InitU3DDrawing();                            // Add 3-d drawing unit
  67.         gTestApplication = new TTestApplication;
  68.         gTestApplication->ITestApplication();
  69.         gTestApplication->Run();
  70.     }
  71.     else
  72.         StdAlert(phUnsupportedConfiguration);
  73. } // main
  74.  
  75. #pragma pop
  76.